﻿<UserControl x:Class="VNet.VisiSuite.Controls.ValidationSummary" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>

        <Style x:Key="ErrorTextBlockStyle" TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle}">
            <Setter Property="FontFamily" Value="Segoe UI Semilight" />
            <Setter Property="FontSize" Value="11pt" />
            <Setter Property="FontWeight" Value="SemiBold" />
            <Setter Property="Foreground" Value="Red" />
            <Setter Property="Focusable" Value="False" />
            <Setter Property="HorizontalAlignment" Value="Left" />
            <Setter Property="Margin" Value="5 5 5 -2" />
        </Style>

        <DataTemplate x:Key="ErrorViewerItemTemplate" DataType="string">
            <StackPanel Orientation="Horizontal">
                <!--<Ellipse Fill="Red" Width="5" Height="5" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0,0,0" />-->
                <TextBlock Text="{Binding}" Style="{StaticResource ErrorTextBlockStyle}" HorizontalAlignment="Left" VerticalAlignment="Center" />
            </StackPanel>
        </DataTemplate>
    </UserControl.Resources>
    <ItemsControl x:Name="_itemsControl" ItemTemplate="{StaticResource ErrorViewerItemTemplate}" />
</UserControl>
